package model;

import java.io.Serializable;

public class Fine implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Car car;
	private float value;
	private String date;
	private boolean payed;	
	private String reason;
	
	public Fine(Car car, float value, String date, String reason) {
		this(car, value, date, false, reason);
	}	
	
	public Fine(Car car, float value, String date, boolean payed, String reason) {
		this.car = car;
		this.value = value;
		this.date = date;
		this.payed = payed;
		this.reason = reason;
	}
	
	@Override
	public String toString() {
		return "(" + this.date + " / " + this.payed + ")" + this.value + " ## " + this.car; 
	}
	
	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}	

	public float getValue() {
		return value;
	}
	
	public void setValue(float value) {
		this.value = value;
	}
	
	public String getDate() {
		return date;
	}
	
	public void setDate(String date) {
		this.date = date;
	}
	
	public boolean isPayed() {
		return payed;
	}
	
	public void setPayed(boolean payed) {
		this.payed = payed;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

}
